package xuesm.delegate.demo;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: xuesm
 * @Description: 相当于项目经历， 委派者
 * @Date: Create in 12:58 2019/4/10
 */
public class Leader {

	private Map<String, IEmployee> register = new HashMap<>();

	public Leader(){
		register.put("编码", new EmplayeeA());
		register.put("架构", new EmployeeB());
	}


	public void doing(String command){
		register.get(command).doing(command);
	}
}
